package com.glq1218.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glq1218.article.entity.Article;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author glq1218
 * @description TODO
 * @since 2023/4/23 9:45
 */
@Repository
public interface ArticleMapper extends BaseMapper<Article> {
    List<String> queryImgListById(Long id);

    int deleteArticleImg(Long id);

    int addArticleImg(@Param("id") Long id, @Param("imgList") List<String> imgList);

    int rental(@Param("id") Long id, @Param("userId") Long userId);
}
